Skip to content

Conversation

@urviljoshi
Copy link
Contributor

No description provided.

private void expireEligibleVids() {
List<VidAssignedEntity> vidAssignedEntities = vidAssignedRepository
.findByStatusAndIsDeletedFalse(VidLifecycleStatus.ASSIGNED);
.findByStatusAndIsDeletedFalse(VidLifecycleStatus.ASSIGNED,vidExpireLimit);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is about expiry and there is no sorting, if we add limit will it not create issues like taking more time to expire when there are large no of rows ? What is the frequency of this job ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it will take some time to expire. frequency is per day at 11 PM. But they can increase freq and limit or should we remove limit as we will scan and expire all in case eligible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants